package com.xuyiwei.mayi.controller;

import com.xuyiwei.mayi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by xuyiwei on 2019/4/18.
 */
@Component
public class UserController {
    @Autowired
    private UserService userService;

    public void add(){
        userService.add1();
        int i = 1/0;
    }
}
